<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
	
	$(function(){
	  var sfydxs = '${sfydxs}';
	  //showOrHide(sfydxs);
	  
	});
	
	function countMoney(obj,id){
		var val=obj.value;
	    var money=val*3;
	    var jmfe=document.getElementById("jmfe").value;
	    if(jmfe=="1"){
	    	 document.getElementById(id).value=0;
	    }else if(jmfe=="2"){
	      document.getElementById(id).value=money*0.5;
	    }else{
	    	document.getElementById(id).value=money;
	    }
	   
		
	}
	
	
	//显示或隐藏地下室	
	/*function showOrHide(flag){
		var dxsTr1 = document.getElementById("dxsTr1");
		var dxsTr2 = document.getElementById("dxsTr2");
		if(flag == 1){
			dxsTr1.style.display = "block";
			dxsTr2.style.display = "block";
		}else if(flag == 2){
			dxsTr1.style.display = "none";
			dxsTr2.style.display = "none";
		}else if(flag == 3){
			dxsTr1.style.display = "block";
			dxsTr2.style.display = "block";
		}
	}*/
	
	function validateFz(obj){
		document.getElementById("fzFlag").value = obj;
	}
</script>

<table width="700" border="0" cellspacing="2" cellpadding="2">
	<tr>
		<td>
			<table width="100%" border="0" cellspacing="2" cellpadding="2">
          		<tr>
          			<td height="55" bordercolor="#000000" align="center" style="font-family:宋体,华文仿宋;font-size:22px;">
            			<br/><b>初审</b><br/><br/>
          			</td>
          		</tr>
        	</table>
        </td>
	</tr>
      
	<tr>
		<td>
			<table width="100%" border="1" cellspacing="0" cellpadding="2" class="tpl_list_ui">
				<tr>
                  	<td width="10%" height="0"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
					<td width="10%"></td>
                </tr>
                <tr>
					<td bordercolor="#000000" colspan="10" height="25" align="left">
					 <input type="radio" name="sfydxs" value = "1" checked>有地下室
						<input type="radio" name="sfydxs" value = "2">无地下室
						<input type="radio" name="sfydxs" value = "3">部分有地下室，部分无地下室		
						
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<!-- 
						<c:choose>
							<c:when test="${not empty sfydxs}">							   
								<input type="radio" id="sfydxs1" name="sfydxs" value="1" onclick="showOrHide('1')" ${fn:indexOf(sfydxs, '1') ge 0 ? 'checked' : ''} />有地下室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="sfydxs" value="2" onclick="showOrHide('2')" ${fn:indexOf(sfydxs, '2') ge 0 ? 'checked' : ''}/>无地下室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="sfydxs" value="3" onclick="showOrHide('3')" ${fn:indexOf(sfydxs, '3') ge 0 ? 'checked' : ''}/>部分有地下室，部分无地下室	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				
							</c:when>							  
							<c:otherwise>
								<input type="radio" id="sfydxs1" name="sfydxs" value="1" onclick="showOrHide('1')" ${fn:indexOf(sfydxs, '1') ge 0 ? 'checked' : ''} checked/>有地下室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="sfydxs" value="2" onclick="showOrHide('2')" ${fn:indexOf(sfydxs, '2') ge 0 ? 'checked' : ''}/>无地下室&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="sfydxs" value="3" onclick="showOrHide('3')" ${fn:indexOf(sfydxs, '3') ge 0 ? 'checked' : ''}/>部分有地下室，部分无地下室	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				
							</c:otherwise>
						</c:choose>
						 -->
					</td>					
                </tr>
                <!-- 
                <tr id="dxsTr1">                	
	                <td bordercolor="#000000" colspan="2" height="25" align="center">地下室面积</td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="dxsmj" value="${dxsmj}" style="width:65%" />平方米
	                </td>
	                <td colspan="3" bordercolor="#000000" align="center" style="padding: 1px 1px 1px 1px;">
	                   	地下室深度
	                </td>
	                <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="dxssd" value="${dxssd}" style="width:80%" />米
	                </td>
                </tr>
              
                <tr id="dxsTr2">
					<td bordercolor="#000000" colspan="3" height="25" align="center">地下室情况</td>
					<td colspan="7" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
					 	<textarea rows="6" style="width:100%" name="dxsqk">${dxsqk}</textarea>
					</td>
                </tr>
                <tr>                	
	                <td bordercolor="#000000" colspan="2" height="25" align="center">总建筑面积</td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="zjzmj" value="${zjzmj}" style="width:65%" />平方米
	                </td>
	                <td colspan="3" bordercolor="#000000" align="center" style="padding: 1px 1px 1px 1px;">
	                   	三通一平
	                </td>
	                <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="styp" value="${styp}" style="width:80%" />方
	                </td>
                </tr>
                   -->
                <tr>     
                <!--            	
	                <td bordercolor="#000000" colspan="2" height="25" align="center">回填土方</td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="httf" value="${httf}" style="width:65%" />方
	                </td>
	                 -->
	                <td colspan="3" bordercolor="#000000" align="center" style="padding: 1px 1px 1px 1px;">
	                   	计算总土方
	                </td>
	                <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="jsztf" value="${jsztf}" style="width:80%" />方
	                </td>
                </tr>
                <tr>                	
	                <td bordercolor="#000000" colspan="2" height="25" align="center">已办土方</td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="ybtf" id="ybtf"  onBlur="countMoney(this,'yjje');" value="${ybtf}" style="width:65%" />
	                </td>
	                <td colspan="3" bordercolor="#000000" align="center" style="padding: 1px 1px 1px 1px;">
	                   	已交金额
	                </td>
	                <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" id="yjje" name="yjje" value="${yjje}" style="width:80%" />
	                </td>
                </tr>
                <tr>                	
	                <td bordercolor="#000000" colspan="2" height="25" align="center">本次土方</td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="bctf" value="${bctf}" onBlur="countMoney(this,'bcje');" style="width:65%" />方
	                </td>
	                <td colspan="3" bordercolor="#000000" align="center" style="padding: 1px 1px 1px 1px;">
	                   	本次金额
	                </td>
	                <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="bcje" id="bcje" value="${bcje}" style="width:80%" />元
	                </td>
                </tr>
                <tr>                	
	                <td bordercolor="#000000" colspan="2" height="25" align="center">总土方</td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="ztf" onBlur="countMoney(this,'zje');"  value="${ztf}" style="width:65%" />方
	                </td>
	                <td colspan="3" bordercolor="#000000" align="center" style="padding: 1px 1px 1px 1px;">
	                   	总金额
	                </td>
	                <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="zje"  id="zje" value="${zje}" style="width:80%" />元
	                </td>
                </tr>
                <c:if test="${needSqjmfqfk eq '1' }">	
                <tr>     
	                <td bordercolor="#000000" rowspan="2" colspan="2" height="25" align="center">
	                付费方式减免
	                <c:choose>
							<c:when test="${jmfe eq 2}">					
							  50%		  
							</c:when>		
							<c:when test="${jmfe eq 1}">					
							  100%		  
							</c:when>							  
						<c:otherwise>
						   0%
						</c:otherwise>
						</c:choose>
	                </td>
	                <td colspan="1" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	期数
	                </td>
	                <!-- 
	                <td colspan="1" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	比例
	                </td>
	                 -->
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	金额
	                </td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	土方量
	                </td>
                </tr>
                <tr>
	                <td colspan="1" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	第1期
	                </td>
	                <!--  
	                <td colspan="1" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	100%
	                </td>
	                -->
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="ffje" value="${ffje}" style="width:80%" />
	                </td>
	                <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
	                   	<input class="text" name="fftfl" value="${fftfl}" style="width:80%" />
	                </td>
                </tr>
                </c:if>        
                <tr>
					<td bordercolor="#000000" colspan="10" height="25" align="left">
						<c:choose>
							<c:when test="${not empty sftyff}">							   
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="sftyff" value="1" ${fn:indexOf(sftyff, '1') ge 0 ? 'checked' : ''}/>同意发放&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="sftyff" value="2" ${fn:indexOf(sftyff, '2') ge 0 ? 'checked' : ''}/>不同意发放&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
							</c:when>							  
							<c:otherwise>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="sftyff" value="1" ${fn:indexOf(sftyff, '1') ge 0 ? 'checked' : ''} checked/>同意发放&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="sftyff" value="2" ${fn:indexOf(sftyff, '2') ge 0 ? 'checked' : ''}/>不同意发放&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
							</c:otherwise>
						</c:choose>
					</td>					
                </tr>
                <tr>
					<td bordercolor="#000000" colspan="10" height="25" align="left">
						<c:choose>
							<c:when test="${not empty fz}">							   
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="fz" value="1" ${fn:indexOf(fz, '1') ge 0 ? 'checked' : ''} onclick="validateFz(this.value);"/>处置证&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="fz" value="2" ${fn:indexOf(fz, '2') ge 0 ? 'checked' : ''} onclick="validateFz(this.value);"/>临时余泥渣土排放复函&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				
							</c:when>							  
							<c:otherwise>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" name="fz" value="1" ${fn:indexOf(fz, '1') ge 0 ? 'checked' : ''} checked  onclick="validateFz(this.value);"/>处置证&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                    <input type="radio" name="fz" value="2" ${fn:indexOf(fz, '2') ge 0 ? 'checked' : ''}  onclick="validateFz(this.value);"/>临时余泥渣土排放复函&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				
							</c:otherwise>
						</c:choose>
					</td>					
                </tr>
                <tr>
					<td bordercolor="#000000" colspan="3" height="25" align="center">备注<br/>(该备注内容将会被打印在证件上)</td>
					<td colspan="7" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
					 	<textarea rows="8" style="width:100%" name="bz">${bz}</textarea>
					</td>
                </tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
        <td>&nbsp;</td>
	</tr>
</table>